package com.hqyj.shop.controller;


import com.hqyj.shop.service.BrandService;
import com.hqyj.shop.util.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2024-10-12 09:08:10
 */
@RestController
@RequestMapping("/brand")
public class BrandController {

    @Autowired
    BrandService brandService;
    //根据商品类型查询品牌
    @GetMapping("/query")
    public ResultVo query(Integer proType){
        return brandService.queryByType(proType);
    }

}

